package com.apptest.android.ui.architecture;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;

import com.apptest.android.core.Constants;
import com.apptest.android.core.bean.SubordinateTitleBean;
import com.apptest.android.ui.common.SubordinatePageFragment;

import java.util.List;

public class ArchitectureSubordinateFragment extends SubordinatePageFragment {
    public View onCreateView(@NonNull LayoutInflater inflater,
                             ViewGroup container, Bundle savedInstanceState) {
        return super.onCreateView(inflater, container, savedInstanceState);
    }

    @Override
    protected void initData() {
        pageSource = Constants.ARTICLE_FROM_ARCHITECTURE;
        Bundle bundle = getArguments();
        assert bundle != null;
        List<SubordinateTitleBean> list =
                getArguments().getParcelableArrayList(Constants.SUBORDINATE_TITLE_LIST);
        subordinatePageViewModel.setSubordinateTitleList(list);
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
    }
}
